package com.example.bookmall.entity.order;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

@Data
@TableName("order_item")
@Accessors(chain = true)
//订单项
public class OrderItem {
    @TableId(type = IdType.AUTO)
    private Integer itemId;

    private String orderId;

    private Integer bookId;

    private Integer quantity;

    private BigDecimal price;

    private String booktitle;

    private String bookcover;
}